package lambda;

/**
 * @author LIBOFEI
 * @ClassName Item
 * @description
 * @date 2020/10/9 14:37
 * @Version 1.0
 **/
public class Item {

    private int id;
    private String name;
    private double price;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public Item(){

    }

    public Item(int id, String name, double price) {
        this.id = id;
        this.name = name;
        this.price = price;
    }

    @Override
    public String toString() {
        return "[id="+ getId() +",name="+getName()+",price="+getPrice()+"]";
    }
}
